<#include "header.html">
<div class="c_nav">
	<span>管理选项：</span>
	<a href="sysRoleAction.do?method=query&parentCode=${role.parentCode}&roleLevel=${role.roleLevel}">返回列表</a>
	<a href="javascript:location.reload()"> | [刷新页面]</a>
</div>
<div class="c_box bg_white">
	<form id="roleForm" name="roleForm" action="?method=save" method="post">
	<div class="c_topic"><#if role.id??>修改<#else>新增</#if>角色信息</div>
	<div class="c_form_3 c_form-label-8">
		<ul class="l_mb">
			<li>
				<span class="e_label e_label-required">父角色名称：</span>
				<span class="e_select">
					<select id="parentCode" name="parentCode">
					<#if parentCode=="0">
						<option value="0">顶级角色</option>
					<#else>
					<#list parents as p>
						<option value="${p.roleCode}" <#if p.roleCode=role.parentCode> selected="selected"</#if>>${p.roleName!}</option>
					</#list>
					</#if>
					</select>
				</span>
			</li>
		</ul>
		<ul class="l_mb">
			<li>
				<span class="e_label e_label-required">角色名称：</span>
				<span class="e_input">
					<input type="text" name="roleName" id="roleName" desc="角色名称" nullable="no" datatype="chinese" maxlen="20" maxlength="20" value="${role.roleName!}"/>
				</span>
			</li>
		</ul>
		<ul class="l_mb">
			<li>
				<span class="e_label e_label-required">角色编码：</span>
				<span class="e_input">
					<input type="text" name="roleCode" id="roleCode" desc="角色编码" nullable="no" datatype="strongchar" maxlen="20" maxlength="20" value="${role.roleCode!}" <#if role.roleCode??> readonly="readonly" </#if>/>
				</span>
			</li>
		</ul>	
		<ul class="l_mb">
			<li class="col_2">
				<span class="e_label">备注：</span>
				<span class="e_input">
					<input type="text" name="remark" id="remark" desc="备注" nullable="yes" datatype="chinese" maxlen="100" maxlength="100" value="${role.remark!}"/>
				</span>
			</li>
		</ul>
	</div>
	
	<div class="e_center">
		<input type="hidden" name="roleId" id="roleId" value="${role.id!}"/>
		<input type="hidden" name="roleLevel" id="roleLevel" value="${role.roleLevel}"/>
		<button type="button" bind="save" tradeAction="" bindForm="roleForm" class="e_btn-page">提交</button>
		<button type="reset" class="e_btn l_ml">重置</button>
	</div>
    </form>
</div>
<#include "footer.html">